﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace OpenSoftStore.Orm.Static
{
    public class SystemInfo
    {
        public static string SysType;
        public static string SysName;
        public static string SysLevel;
        public static string DataName;
        public static string DataNameExt;
        public static string VersionKey;
        public static bool IsLan = false;
        public static bool IsLicenseOk = false;
        public static DateTime TimeOutTime = DateTime.MaxValue;
        public static string Sender;
        public static string CurrentVersion
        {
            get
            {
                Assembly executingAssembly = Assembly.GetExecutingAssembly();
                AssemblyName name = executingAssembly.GetName();
                string text = name.Version.ToString();
                return text.Substring(0, text.LastIndexOf('.'));
            }
        }
    }
}
